﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace b7.Models
{
    public class NhomSanpham
    {
        [Key]
        public int NhomSanphamId { get; set; }

        [Display(Name = "ten nhom san pham")]
        [Required(ErrorMessage = "ten nhom san pham khong duoc de trong")]
        public string Name { get; set; }

        public string Anh { get; set; }

        public virtual List<Sanpham> Sanphams { get; set; }
        //public virtual List<Theloai> Theloais { get; set; }
    }
}